<!DOCTYPE html>
<html>
<head lang="en">
    <title>设备监控 - 监控设备</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/cwp/favicon.ico" type="image/x-icon" />
    <!--引入CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/list.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/btn.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/tabs.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/taqs.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/panel.css"  />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/table.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/zTree/css/metroStyle/metroStyle.css"/>
    <!--引入bootstrap CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrapModel.css" />
    <link rel="stylesheet" type="text/css" href="http://www.w2bc.com/demo/2015-02-07-bootstrap-jquery-switch-button/css/bootstrap3/bootstrap-switch.css" />

    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/animate.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/smartSecurity/device.css"/>
    <link rel="stylesheet" type="text/css" href="../../../assets/css/monitorDevices/illumination/illumination.css"/>
</head>
<body>

<!--头部文件 开始-->
<div id="header" class="hide"></div>
<!--头部文件 结束-->


<!--主要内容开始-->
<div class="wrapper open">
    <!--左侧菜单 开始-->
    <div id="left-menu" class=""></div>
    <div class="center_td">

        <div class="device_state mb-20 pb-20 hide">
            <div class="title">
                设备状态
            </div>
            <ul>
                <li><span class="icon-location2 t-tip-error"></span>故障</li>
                <li><span class="icon-location2 t-tip-todo"></span>正常</li>
            </ul>
        </div>
        <!--搜索-->
        <div class="search">
            <input type="text" id="btn-search-device" placeholder="搜索照明设备" />
        </div>
        <div class="clearfix">
            <!--楼层菜单-->
            <div id="floor" class="fl mt-10">
                <div class="title hide">
                    监控设备
                </div>

                <div class="content">
                    <form id="frmTree">
                        <input type="hidden" id="buildingId" value=""/>
                        <div class="title">楼层</div>
                        <ul class="floorMenu" id="floorMenuList">

                        </ul>
                    </form>
                </div>
            </div>

            <!--设备列表-->
            <div id="device-list" class="fr">
                <div class="title">设备位置</div>
                <ul id="deviceList">
                </ul>
            </div>
        </div>
    </div>
    <!--右侧内容 开始-->
    <div class="right-container">
        <div class="right-scroll">
            <div class="t-list" style="width: 100%;height: 100%;">
                <!--门禁设备-->
                <div class="t-building">
                    <!--楼层-->
                    <div class="img-title hide">
                        <ul id="deviceInfo">

                        </ul>
                    </div>
                    <div id="floor-list">

                    </div>
                    <!--工具栏-->
                    <div class="status-bar">
                        <img src="../../../assets/img/compass_icon.png" style="width: 100%"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--左侧菜单 结束-->
</div>

<!--版权-->
<div id="copyright"  class="hide"></div>

<!--开关确认模态框-->
<div class="modal fade bs-example-modal-sm" id="modalSwitch" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">智能照明控制</h4>
            </div>
            <div class="modal-body">
                <div class="t-list">
                    <input type="hidden"  id="hidSwitch" value=""/>
                    <div class="content" style="line-height: 24px">

                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary"  id="btnConfirm">确定</button>
            </div>
        </div>
    </div>
</div>

<!--提示模态框-->
<div class="modal fade bs-example-modal-sm" id="myTip" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body" style="text-align:center;font-size:14px;">
                <i id="icon-tip" style="margin-right:6px;"></i>
                <span class="tip-info"></span>
            </div>
        </div>
    </div>
</div>
<!--jQuery库脚本-->
<!--非IE8浏览器-->
<!--[if !(IE 8)]><!--><script type="text/javascript" src="../../../assets/lib/jquery/jquery.min.js"></script><!--<![endif]-->
<!--IE8浏览器-->
<!--[if IE 8]><script type="text/javascript" src="../../../assets/lib/jquery/jquery-ie8.min.js"></script><![endif]-->
<script type="text/javascript" src="../../../assets/lib/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>
<script src="../../../assets/common/loadHeaderAndCopyright.js"></script>
<script src="../../../assets/common/wrapperHeight.js"></script>
<!--模态框-->
<script src="../../../assets/lib/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
<!--模态提示框-->
<script src="../../../assets/common/centerModal.js"></script>
<script src="../../../assets/common/ajaxPoster.js"></script>
<script charset="utf-8" src="../../../assets/lib/tipModal/js/tipModal.js"></script>
<!--分页脚本-->
<script charset="utf-8" src="../../../assets/lib/pagination/1.2.1/jquery.pagination.js"></script>

<script charset="utf-8" src="../../../assets/lib/artTemplate/template.js"></script>
<script src="../../../assets/common/loaderTableTmpl.js"></script>
<script src="../../../js/monitorDevices/illumination/illumination.js"></script>
<!--加载楼层菜单-->
<script type="text/html" id="menuListTmpl">
    {{each beans}}
    {{if $value.buildingDesc !="B1"}}
    <li><a class="floor-item {{$value.num | numFormat}}" data-id="{{$value.buildingId}}">{{$value.buildingDesc}}</a></li>
    {{/if}}
    {{/each}}
</script>
<!--加载设备列表-->
<script type="text/html" id="deviceTmpl">
    {{each beans}}
    <li><a class='device-item' data-id="{{$value.deviceId}}">{{$value.devicePositionDescribe}}</a></li>
    {{/each}}
</script>
<!--加载楼层地图-->
<script type="text/html" id="mapTmpl">
    {{each beans}}
    <div class="floor-image {{$value.num | mapFormat}}" id="floor{{$value.buildingId}}">
        <img src="{{$value.num | mapImgFormat}}" alt="">
        <div class='device-coordinate-item selected' id="{{$value.buildingId}}">

        </div>
    </div>
    {{/each}}
</script>
<!--监控设备信息-->
<script type="text/html" id="deviceInfoTmpl">
    <li><label>设备类型：</label>照明设备</li>
    <li><label>设备位置：</label><span class="title">{{bean.devicePositionDescribe}}</span></li>
    <li><label>场景地址：</label><span class="title">{{bean.devicePositionCode}}</span></li>
    <li><label>操作开关：</label>
        <div class="switch clearfix" style="display:inline-block;">
            <button class="t-btn t-btn-sm t-btn-blue t-btn-open">开</button>
            <button class="t-btn t-btn-sm t-btn-close">关</button>
            <input class="hide" id="switch" type="checkbox" data-off-color="warning"  data-size="mini"/>
        </div>
    </li>
</script>

</body>

</html>